import Vue from 'vue'
import App from './App.vue'
import router from './router'
// import axios from 'axios'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 引入初始化的样式和字体图标
import './assets/css/normalize.css'
import './assets/fonts/iconfont.css'
import './assets/css/index.less'

// 挂载过滤器
import './utils/filters.js'
// 挂载全局注册的组件
import './utils/components'

// 按需引入 echarts 5.x
import echarts from './utils/echartsUI'
Vue.prototype.$echarts = echarts

Vue.use(ElementUI)
Vue.config.productionTip = false

// 测试代码，测试成功了就要删除的
// axios
//   .post('http://127.0.0.1:5000/users/checkLogin', 'account=小貂蝉&password=666')
//   .then(res => {
//     console.log(res.data)
//   })

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
